/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.admin.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import org.springblade.core.mp.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springblade.core.tenant.mp.TenantEntity;
import org.springblade.modules.system.entity.Tenant;

import java.util.List;

/**
 * 实体类
 *
 * @author ysq
 * @since 2024-07-24
 */
@Data
@TableName(value = "blade_building_floor_elevator", autoResultMap = true)
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "BuildingFloorElevator对象", description = "BuildingFloorElevator对象")
public class BuildingFloorElevator extends TenantEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 项目id
	 */
	@ApiModelProperty(value = "项目id")
	private Long buildingId;
	/**
	 * 项目电梯模板信息ID
	 */
	@ApiModelProperty(value = "项目电梯模板信息ID")
	private Long templateId;
	/**
	 * 楼层编号
	 */
	@ApiModelProperty(value = "楼层编号")
	private String floorNums;
	/**
	 * 楼栋名称
	 */
	@ApiModelProperty(value = "楼栋名称")
	private String floorName;
	/**
	 * 楼栋别名用于数据拆分
	 */
	@ApiModelProperty(value = "楼栋别名用于数据拆分")
	private String floorAnotherName;

	@ApiModelProperty(value = "非业务字段用于前端处理逻辑")
	private String otherText;

	/**
	 * 开始楼层
	 */
	@ApiModelProperty(value = "开始楼层")
	private Integer floorBeginNum;
	/**
	 * 结束楼层
	 */
	@ApiModelProperty(value = "结束楼层")
	private Integer floorEndNum;
	/**
	 * 楼层总数
	 */
	@ApiModelProperty(value = "楼层总数")
	private Integer floorAllNum;

	@ApiModelProperty(value = "楼栋救援图")
	@TableField(typeHandler = JacksonTypeHandler.class)
	private List<String> jyImages;

	@ApiModelProperty(value = "绑定的电梯ids")
	@TableField(exist = false)
	List<Long> elevatorIds;

	@ApiModelProperty(value = "楼栋数据")
	@TableField(exist = false)
	List<BuildingFloorElevatorNum> numLists;

}
